﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PurchasedReceivedDisplay.aspx.cs"
    Inherits="Main_Inventory_PurchasedReceivedDisplay" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControl" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Purchase Received Display</title>
    <link href="../../../Styles/accounts.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function showdetails() {
            if (document.getElementById("ddlpurchaseorderno").value != "0") {
                document.getElementById("maindiv").style.visibility = 'visible';
            }
            else if (document.getElementById("ddlpurchaseorderno").value == "0") {
                document.getElementById("maindiv").style.visibility = 'hidden';
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
    </asp:ScriptManager>
    <acc:heading ID="pagehead" runat="server" HeadingText="Domestic Purchase Receive" />
    <div id="maindiv" style="margin-left: 1%; margin-top: 5px; width: 99%;">
        <div style="text-align: center; height: 5px; width: 50%; margin-left: 22%; margin-right: 25%">
            <asp:Label ID="lblMsg" runat="server" Font-Bold="true"></asp:Label>
        </div>
        <table class="tablecontent" style="width: 99%; margin-left: 0.3%; text-align: left;">
            <tr>
                <td class="headtd" colspan="4">
                    Purchase Received
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; border-bottom: 1px solid #818181; width:12.5%;">
                    P.O. Number
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width:37%;">
                    <asp:Label ID="lblPONumber" runat="server"></asp:Label>
                </td>
                <td style="font-weight: bold; border-bottom: 1px solid #818181;border-left: 1px solid #818181; width:12.5%;">
                    Supplier
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width:37%;">
                    <asp:Label ID="lblSupplier" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; border-bottom: 1px solid #818181;">
                    Voucher No.
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                    <asp:Label ID="lblvouno" runat="server"></asp:Label>
                </td>
                <td style="font-weight: bold;border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                    Invoice No.
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                    <asp:Label ID="lblinvno" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold;border-bottom: 1px solid #818181;">
                   Invoice Date
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                    <asp:Label ID="lbldate" runat="server"></asp:Label>
                </td>
                <td style="font-weight: bold; border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                    Tax Group
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                    <asp:Label ID="lbltaxgroup" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; border-bottom: 1px solid #818181;">
                    Bill Reference.
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                    <asp:Label ID="lblbilref" runat="server"></asp:Label>
                </td>
                <td style="font-weight: bold;border-bottom: 1px solid #818181;border-left: 1px solid #818181;">
                    Mode of Payment.
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                    <asp:Label ID="lblmodeofpay" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="font-weight: bold; border-bottom: 1px solid #818181;">
                  Invoice Amount
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                     <asp:Label ID="lblInvoiceAmt" runat="server"></asp:Label>
                </td>
                <td style="font-weight: bold;border-bottom: 1px solid #818181;border-left: 1px solid #818181;">
                    Purchase Received Date
                </td>
                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                   <asp:Label ID="lblPurchaseReceDate" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <div style="margin-left: 0.3%; width: 99%;">
            <table id="tbl_purReceived" runat="server" class="tablecontent" style="width: 100%; margin-top: 10px;">
                <tr style="border-bottom:1px solid #818181;">
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:24%;">
                        ItemName/ItemCode
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:8%;">
                        Unit Price
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:10%;">
                        Received Qty
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:6%;">
                        Sub Amount
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:6%;">
                        Tax
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:6%;">
                        Tax Amount
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:6%;">
                        Service Tax %
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:6%;">
                        Service Tax Amount
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:6%;">
                        Freight
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:6%;">
                        Packaging
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:6%;">
                        Insurance
                    </td>
                    <td style="font-weight: bold; border-left: 1px solid #818181; width:10%;">
                        Landed Cost
                    </td>                    
                </tr>
            </table>
            <table style="width: 100%; text-align: left; margin-top: 20px;" class="tablecontent">
                <tr>
                    <td style="vertical-align: top; border: 1px solid #818181; width: 70%;">
                        <table style="width: 100%; margin-bottom: 5px;">
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 30%;">
                                    Mode of Delivery
                                </td>
                                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lblmodeofdelivery" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 30%;">
                                    Delivery Date
                                </td>
                                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lbldeliverydate" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 30%;">
                                    Document NO.
                                </td>
                                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lbldocno" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 30%;">
                                    Transporter Name
                                </td>
                                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lbltransportname" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 30%;">
                                    Vehicle Number
                                </td>
                                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lblvehicleno" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 30%;">
                                    Prepared By
                                </td>
                                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lblpreparedby" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 30%;">
                                    Checked By
                                </td>
                                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lblcheckedby" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 30%;">
                                    Authorized Signatory
                                </td>
                                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lblauthorizedby" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 30%;">
                                    Narration
                                </td>
                                <td style="border-left: 1px solid #818181; border-bottom: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lblnarration" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; width: 30%;">
                                    Remarks
                                </td>
                                <td style="border-left: 1px solid #818181; width: 70%;">
                                    <asp:Label ID="lblremarks" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td style="vertical-align: top; width: 30%;">
                        <table align="right" style="width: 100%; margin-bottom: 5px;">
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181; width: 70%;">
                                    Total Item Quantity
                                </td>
                                <td align="right" style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;
                                    width: 30%;">
                                    <asp:Label ID="lbltotalitemqty" runat="server" Style="text-align: right;" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181;">
                                    Total Landed Cost
                                </td>
                                <td align="right" style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                                    <asp:Label ID="lbltotalgrossamt" runat="server" Style="text-align: right;" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181;">
                                    Total Inventory Cost
                                </td>
                                <td align="right" style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                                    <asp:Label ID="lbltaxableamt" runat="server" Style="text-align: right;" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181;">
                                    VAT/CST
                                </td>
                                <td align="right" style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                                    <asp:Label ID="lblvatcst" runat="server" Style="text-align: right;" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181;">
                                    Post Tax Total
                                </td>
                                <td align="right" style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                                    <asp:Label ID="lblposttaxtotal" runat="server" Style="text-align: right;" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181;">
                                    Round off Amount
                                </td>
                                <td align="right" style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                                    <asp:Label ID="lblroundoffamt" runat="server" Style="text-align: right;" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-weight: bold; border-bottom: 1px solid #818181;">
                                    Grand Total
                                </td>
                                <td align="right" style="border-left: 1px solid #818181; border-bottom: 1px solid #818181;">
                                    <asp:Label ID="lblgrandtotal" runat="server" Style="text-align: right;" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
